package com.atguigu.create.prototype.serialize;

import java.io.Serializable;

//@Data
//@NoArgsConstructor
//@AllArgsConstructor
//@ToString
public class SheepMaster implements Serializable {
    private String name;
    private Boolean gender;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getGender() {
        return gender;
    }

    public void setGender(Boolean gender) {
        this.gender = gender;
    }

    public SheepMaster() {
    }

    public SheepMaster(String name, Boolean gender) {
        this.name = name;
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "SheepMaster{" +
                "name='" + name + '\'' +
                ", gender=" + gender +
                '}';
    }

//    @Override
//    protected Object clone() throws CloneNotSupportedException {
//        return super.clone();
//    }
}
